package threadDemo;

class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("第一种创建线程的方式");
    }
}

public class demo1{
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
    }
}
